package com.estudos.init;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.ModelAndView;

import com.estudos.model.Permissao;
import com.estudos.model.Usuario;

@Configuration
public class InitBeans {
	@Bean
	public Usuario getUsuario(){
		return new Usuario();
	}
	
	@Bean
	public Permissao getPermissao(){
		return new Permissao();
	}
	
	@Bean
	public ModelAndView getModelAndView(){
		System.out.println("aaaaaa iniciazou ModelAndView!");
		return new ModelAndView();
	}
}
